document.addEventListener('DOMContentLoaded', () => {
    initChart('scoreChart', {
        series: [{
            type: 'gauge',
            center: ['50%', '60%'],
            radius: '90%',
            progress: { show: true, width: 20 },
            axisLine: {
                lineStyle: { 
                    width: 30,
                    color: [[0.3, '#FF4500'], [0.7, '#FFD700'], [1, '#32CD32']] // 红黄绿三色
                }
            },
            axisTick: { show: false },
            splitLine: { show: false },
            axisLabel: { show: false },
            pointer: { show: false },
            detail: {
                valueAnimation: true,
                fontSize: 40,
                color: '#90e0ef',
                offsetCenter: [0, '30%'],
                formatter: '{value}%'
            },
            data: [{ value: 100, name: '完成率' }] // 实时数据入口
        }]
    });
})